import codecs

file = codecs.open('methods/greeklish_dict.txt','r','utf-8')

_dict = {}

for line in file:
    [greeklish, greek, rank]=line.split(' - ')
    _dict[greek.lower()] = greeklish.lower()
    
def greeklish(greek):
    if greek in _dict:
        return _dict[greek]
    return None
    